/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.web.domain.test;

import lombok.Data;
import me.zhengjie.modules.system.service.dto.ExamOrderDto;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class AtmrTestUnitRespDTO{

    /** 编号，自增 */
    private Integer id;

    /** 测试名称 */
    private String name;

    /** 测试类型 */
    private String type;

    private String iconUrl;

    /**
     * 成人或儿童 1：成人 2：儿童
     */
    private String ageType;

    private String subTitle;

    private String webUrl;

    public String getWebUrl(String ageType){
        if ("1".equals(ageType)){
            return "http://wx.drzh-atmr.cn/atmrweb/index.html#/pages/evaluation/intro?atmrId="+ id;
        }else if ("2".equals(ageType)){
            return "http://wx.drzh-atmr.cn/atmrweb/index.html#/pages/evaluation/child?atmrId="+id;
        }
        return null;
    }
}